package com.zzt.video.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zzt.video.model.entity.Advertise;
import com.zzt.video.model.mapper.AdvertiseMapper;
import com.zzt.video.service.AdvertiseService;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AdvertiseServiceImpl extends ServiceImpl<AdvertiseMapper, Advertise> implements AdvertiseService {

    @Override
    public List<Advertise> getAdvertiseList() {
        return baseMapper.selectList(new LambdaQueryWrapper<Advertise>().orderByAsc(Advertise::getId));
    }
}
